<ul id="approval_second_step">
    <li>
        <ul class="pop_list crate-entity-list crate-approval-list">
            <li class="rk-formrow" ><label>{{'APPROVAL_THEME' | i18n}}</label><input type="text" _id="title" name="title" maxlength="100"></li>
        </ul>
        <div id="applyItemListDiv"></div>
    </li>
    {{if uploadFlg == 1}}
        <li>
            <label>{{'UPLOAD' | i18n}}{{'ATTACHMENT' | i18n}}</label>
            <a href="javascript:void(0);" id="fileName_a"></a>
            {{if uploadRequiredFlg == 1}}
            <span class="nc_error_upload_required mandatory_symbol">*</span>
            {{/if}}
            <div class="fileAdd">
                <div class="fileinput-box">
                    <span class="fileinput-button">添加文件</span>
                </div>
            </div>
            {{if flowCategoryFile.fileUrl != ''}}
                <a href="/common-file-download.action?commonFileId={{flowCategoryFile.id}}&tfcode={{flowCategoryFile.tfcode}}" class="template_link">{{'DOWNLOAD' | i18n}}{{'ATTACHMENT' | i18n}}{{'TEMPLATE' | i18n}} ({{flowCategoryFile.fileName}})</a>
            {{/if}}
        </li>
        <li class="file_queue_li">
            <div id="myFileQueue"></div>
        </li>
        <li class="file_queue_li" style="display: none">
            <div id="fileQueue"></div>
        </li>
    {{/if}}
    <input type="hidden" name="paramMap['belongId']" id="belong_id" value="{{if belongId == ''}}13{{else}}{{belongId}}{{/if}}">
    <input type="hidden" name="paramMap['objectId']" id="object_id" value="{{objectId}}">
    {{if businessFlg == 1}}
        <li class="clear">
            <label>{{'BUSINESS' | i18n}}</label>
            {{if belongId != '' && entityName != ''}}
            <span class="task_group">
                {{if 1 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class account" title="{{'APPROVAL_THIS_IS_A_1' | i18n}}"></span>
                        <a target="_blank" href="/final/account.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 2 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class contact" title="{{'APPROVAL_THIS_IS_A_2' | i18n}}"></span>
                        <a target="_blank" href="/final/contact.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 3 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class opp" title="{{'APPROVAL_THIS_IS_A_3' | i18n}}"></span>
                        <a target="_blank" href="/final/opportunity.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 11 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class leads" title="{{'APPROVAL_THIS_IS_A_4' | i18n}}"></span>
                        <a target="_blank" href="/final/lead.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 6 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class campaigns" title="{{'APPROVAL_THIS_IS_A_5' | i18n}}"></span>
                        <a target="_blank" href="/final/campaign.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 9 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class partners" title="{{'APPROVAL_THIS_IS_A_10' | i18n}}"></span>
                        <a target="_blank" href="/final/partner.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 64 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class expenseaccounts" title="{{'APPROVAL_THIS_IS_A_6' | i18n}}"></span>
                        <a target="_blank" href="/final/expenseaccount.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 66 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class agent" title="{{'APPROVAL_THIS_IS_A_7' | i18n}}"></span>
                        <a target="_blank" href="/final/agent.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 67 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class terminal" title="{{'APPROVAL_THIS_IS_A_8' | i18n}}"></span>
                        <a target="_blank" href="/final/terminal.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
                {{if 15 == belongId}}
                    <p class="group_name">
                        <span class="feed-group-class contract" title="{{'APPROVAL_THIS_IS_A_11' | i18n}}"></span>
                        <a target="_blank" href="/final/contract.action?id={{objectId}}">{{entityName}}</a>
                    </p>
                {{/if}}
            </span>
            {{/if}}
            {{if belongId == '' || entityName == ''}}
            <span>
                <a id="btnSelectBusiness" href="javascript:;" title="{{'APPROVAL_SELECT_REL_BUSINESS' | i18n}}">{{'APPROVAL_SELECT_REL_BUSINESS' | i18n}}</a>
                {{if businessRequiredFlg == 1}}
                    <span class="nc_error_business_required mandatory_symbol">*</span>
                {{/if}}
            </span>
                <div id="businessDiv" style="display: none" class="bussiness-type">
                {{if relBusiness != null}}
                    <span class="ui-select-buttonset">
                        <select style="width:75px" id="bussiness_type">
                            {{if relBusiness.account == 1}}<option value="1">{{'APPROVAL_ACCOUNT' | i18n}}</option>{{/if}}
                            {{if relBusiness.opportunity == 1}}<option value="2">{{'APPROVAL_OPPORTUNITY' | i18n}}</option>{{/if}}
                            {{if relBusiness.contact == 1}}<option value="3">{{'APPROVAL_CONTACT' | i18n}}</option>{{/if}}
                            {{if relBusiness.lead == 1}}<option value="4">{{'APPROVAL_LEAD' | i18n}}</option>{{/if}}
                            {{if relBusiness.campaign == 1}}<option value="5">{{'APPROVAL_CAMPAIGN' | i18n}}</option>{{/if}}
                            {{if relBusiness.partner == 1}}<option value="10">{{'APPROVAL_PARTNER' | i18n}}</option>{{/if}}
                            {{if relBusiness.expenseAccount == 1}}<option value="7">{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}</option>{{/if}}
                            {{if relBusiness.agent == 1}}<option value="8">{{'APPROVAL_AGENT' | i18n}}</option>{{/if}}
                            {{if relBusiness.terminal == 1}}<option value="9">{{'APPROVAL_TERMINAL' | i18n}}</option>{{/if}}
                            {{if relBusiness.contract == 1}}<option value="11">{{'APPROVAL_CONTRACT' | i18n}}</option>{{/if}}
                        </select>
                    </span>
                    <span id="account_span" style="margin-right: 0px">
                        <input id="account" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_ACCOUNT' | i18n}}" class="text" type="text" title="{{'APPROVAL_ACCOUNT' | i18n}}" errMsgId="account_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol ">*</span>
                        {{/if}}
                        <span id="account_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="opp_span" style="margin-right: 0px" class="hidden">
                        <input id="opp" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_OPPORTUNITY' | i18n}}" class="text" type="text" title="{{'APPROVAL_OPPORTUNITY' | i18n}}" errMsgId="opp_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="opp_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="contact_span" style="margin-right: 0px" class="hidden">
                        <input id="contact" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CONTACT' | i18n}}" class="text" type="text" title="{{'APPROVAL_CONTACT' | i18n}}" errMsgId="contact_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="contact_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="lead_span" style="margin-right: 0px" class="hidden">
                        <input id="lead" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_LEAD' | i18n}}" class="text" type="text" title="{{'APPROVAL_LEAD' | i18n}}" errMsgId="lead_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="lead_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="campaign_span" style="margin-right: 0px" class="hidden">
                        <input id="campaign" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CAMPAIGN' | i18n}}" class="text" type="text" title="{{'APPROVAL_CAMPAIGN' | i18n}}" errMsgId="campaign_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="campaign_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="partner_span" style="margin-right: 0px" class="hidden">
                        <input id="partner" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_PARTNER' | i18n}}" class="text" type="text" title="{{'APPROVAL_PARTNER' | i18n}}" errMsgId="partner_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="partner_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="expenseaccount_span" style="margin-right: 0px" class="hidden">
                        <input id="expenseaccount" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}" class="text" type="text" title="{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}" errMsgId="expenseaccount_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="expenseaccount_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="agent_span" style="margin-right: 0px" class="hidden">
                        <input id="agent" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_AGENT' | i18n}}" class="text" type="text" title="{{'APPROVAL_AGENT' | i18n}}" errMsgId="agent_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="agent_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="terminal_span" style="margin-right: 0px" class="hidden">
                        <input id="terminal" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_TERMINAL' | i18n}}" class="text" type="text" title="{{'APPROVAL_TERMINAL' | i18n}}" errMsgId="terminal_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="terminal_search_msg" class="tip_bottom hidden"></span>
                    </span>
                    <span id="contract_span" style="margin-right: 0px" class="hidden">
                        <input id="contract" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CONTRACT' | i18n}}" class="text" type="text" title="{{'APPROVAL_CONTRACT' | i18n}}" errMsgId="contract_search_msg" />
                        {{if businessRequiredFlg == 1}}
                            <span class="nc_error_business_required mandatory_symbol">*</span>
                        {{/if}}
                        <span id="contract_search_msg" class="tip_bottom hidden"></span>
                    </span>
                {{/if}}
                </div>
            {{/if}}
        </li>
    {{/if}}
</ul>